<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>出错了</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        h1 {
            color: #d9534f;
            text-align: center;
        }
        .error-box {
            margin: 20px 0;
            padding: 15px;
            border: 1px solid #d9534f;
            border-radius: 4px;
            background-color: #f2dede;
        }
        .back-button {
            background-color: #5bc0de;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: block;
            margin: 20px auto;
            text-decoration: none;
            text-align: center;
        }
        .back-button:hover {
            background-color: #46b8da;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>出错了</h1>
        <div class="error-box">
            <h3>发生错误：</h3>
            <p th:text="${errorMessage}">出现意外错误</p>
        </div>
        <a href="/" class="back-button">返回首页</a>
    </div>
</body>
</html> 